const express = require('express')
const router = express.Router()
const { DataSourceController } = require('../controller/data_source')
const authMiddleware = require('../middleware/auth')
router.post(
  '/v1/dataSource/add',
  authMiddleware,
  DataSourceController.dataSourceAdd
)
router.put(
  '/v1/dataSource/edit',
  authMiddleware,
  DataSourceController.dataSourceUpd
)
router.delete(
  '/v1/dataSource/del',
  authMiddleware,
  DataSourceController.dataSourceDel
)
router.get(
  '/v1/dataSource/list',
  authMiddleware,
  DataSourceController.dataSourceList
)
router.post(
  '/v1/dataSource/check',
  authMiddleware,
  DataSourceController.dataSourceCheck
)

router.get(
  '/v1/dataSource/all',
  authMiddleware,
  DataSourceController.dataSourceALL
)
module.exports = router
